package org.yocastlong.mybatisplus.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.yocastlong.mybatisplus.pojo.bo.UserInfoBO;
import org.yocastlong.mybatisplus.service.AuthService;
import org.yocastlong.mybatisplus.service.RedisService;

/**
 * @author 朱海龙
 * 2025/6/10 14:47
 */
@Service
public class AuthServiceImpl implements AuthService {

    @Autowired
    private RedisService redisService;

    @Override
    public UserInfoBO checkTokenAndGetUserInfo(String token) {
        return redisService.getObjectValue(token);
    }
}
